﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Vouchers
{
    [Comment("订单明细表")]
    [Table("t_ordervoucherdetail")]
    [Index(nameof(VoucherCode))]
    public class OrderVoucherDetail:VoucherDetailBase
    {
        public OrderVoucherDetail(Guid id)
        {
            this.Id = id;
        }

        public OrderVoucherDetail()
        {

        }
        [Comment("部门编码")]
        public Guid? DeptId { get; set; }

        /// <summary>
        /// 部门编码 -申请科室
        /// </summary>
        [MaxLength(200)]
        [Comment("部门名称")]
        public string DeptName { get; set; }

        [Comment("订单数量")]
        public decimal OrderCount { get; set; }
    }
}
